#ifndef PUBLIC_DEFINE_H
#define PUBLIC_DEFINE_H

#include <QIcon>
#include <QString>

#define MAX_WINDOW_H ( 800 )
#define MAX_WINDOW_W ( 1450 )

#define TITLE_STYLE  ( QString( "#FFFFFF" ) )
#define NORMAL_STYLE ( QString( "#4bb2ff" ) )
#define WARM_STYLE   ( QString( "#ffb800" ) )
#define DANGER_STYLE ( QString( "#ff5722" ) )

#define MAX( a, b ) ( a > b ? a : b )
#define createCustomStyleSheet( obj, fontSize, color, bgColor, borderWidth, borderColor, borderRadius ) \
    QString( "%1{font-size:%2px;color:%3;background:%4;border:%5px sloid %6;border-radius:%7px}" )      \
        .arg( obj )                                                                                     \
        .arg( fontSize )                                                                                \
        .arg( color )                                                                                   \
        .arg( bgColor )                                                                                 \
        .arg( borderWidth )                                                                             \
        .arg( borderColor )                                                                             \
        .arg( borderRadius )

enum
{
    DATA_INT = 0,
    DATA_UINT,
    DATA_FLOAT,
    DATA_SRTING,
    DATA_ENUM,
};

enum
{
    ZOOM_1 = 0,
    ZOOM_10,
    ZOOM_100,
    ZOOM_1000,
};

/// 显示风格
enum
{
    DISP_NORMAL = 0,
    DISP_WARM,
    DISP_DANGER,
};

struct iconDef
{
    QIcon   icon;
    QString title;
};

#endif  // PUBLIC_DEFINE_H
